cmake_minimum_required(VERSION 3.20)
project(XqtGui)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt5 COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED
        )



# 修改这里
#set(CMAKE_PREFIX_PATH "D:/Software/SDK/Qt/5.15.2/mingw81_64")
set(CMAKE_PREFIX_PATH "C:/Qt/5.15.2/mingw81_64")
#指定输出路径
if (NOT EXISTS ${CMAKE_PREFIX_PATH}/out)
    file(MAKE_DIRECTORY out)
endif ()
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/out)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/out)



add_subdirectory(XGui)
add_subdirectory(Example)


